Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade docker version #3343

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

dl239
Copy link
Collaborator

@dl239 dl239 commented Jun 29, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?

@github-actions github-actions bot added the docker openmldb compile image or demo image label Jun 29, 2023
@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (83937c5) 75.67% compared to head (7eae610) 75.65%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3343      +/-   ##
============================================
- Coverage     75.67%   75.65%   -0.02%     
  Complexity      414      414              
============================================
  Files           692      692              
  Lines        125963   125993      +30     
  Branches       1189     1190       +1     
============================================
+ Hits          95317    95320       +3     
- Misses        30405    30432      +27     
  Partials        241      241              

see 21 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions github-actions bot added documentation Improvements or additions to documentation workflow CICD related labels Jun 29, 2023
@@ -262,6 +262,8 @@ jobs:
run: |
python3 -m easy_install pip
pip install setuptools wheel twine
pip install urllib3==1.26.6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reason ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe caused by #3284 . It is not because urllib too old, instead, twine is too new.
newer urllib will not work on centos7 because libssl too old. We should lock the twine version.
@vagetablechicken

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ghcr.io/4paradigm/hybridsql:latest doesn't has them, so we should install it or them(locked version) in the image?

Copy link
Collaborator

@aceforeverd aceforeverd Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like urllib3 >=2.0.0 breaks twine, refer pypa/twine#989
twine pulls urllib3 2.0:

root@7a6e3231edd3 ~# pip install twine
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages
sysconfig: /opt/rh/rh-python38/root/usr/lib/python3.8/site-packages
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /opt/rh/rh-python38/root/usr/local/include/python3.8/UNKNOWN
sysconfig: /opt/rh/rh-python38/root/usr/include/python3.8/UNKNOWN
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /opt/rh/rh-python38/root/usr/local/bin
sysconfig: /opt/rh/rh-python38/root/usr/bin
WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /opt/rh/rh-python38/root/usr/local
sysconfig: /opt/rh/rh-python38/root/usr
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Collecting twine
  Downloading twine-4.0.2-py3-none-any.whl (36 kB)
Collecting rfc3986>=1.4.0
  Downloading rfc3986-2.0.0-py2.py3-none-any.whl (31 kB)
Collecting keyring>=15.1
  Downloading keyring-24.2.0-py3-none-any.whl (37 kB)
Collecting requests-toolbelt!=0.9.0,>=0.8.0
  Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 857 kB/s
Requirement already satisfied: requests>=2.20 in /opt/rh/rh-python38/root/usr/lib/python3.8/site-packages (from twine) (2.22.0)
Collecting pkginfo>=1.8.1
  Downloading pkginfo-1.9.6-py3-none-any.whl (30 kB)
Collecting readme-renderer>=35.0
  Downloading readme_renderer-40.0-py3-none-any.whl (14 kB)
Collecting rich>=12.0.0
  Downloading rich-13.4.2-py3-none-any.whl (239 kB)
     |████████████████████████████████| 239 kB 797 kB/s
Collecting importlib-metadata>=3.6
  Downloading importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Collecting urllib3>=1.26.0
  Downloading urllib3-2.0.3-py3-none-any.whl (123 kB)
     |████████████████████████████████| 123 kB 1.6 MB/s
Collecting zipp>=0.5

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip install twine "urllib3>=1.26.0,<2.0.0"

Copy link
Collaborator Author

@dl239 dl239 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

twine >= 3.8.0 require urllib3>=1.26.0, so it will install 2.x urllib.
3.7.0 twine works well

@vagetablechicken vagetablechicken merged commit 7b7a371 into 4paradigm:main Jul 14, 2023
@dl239 dl239 deleted the feat/upgrade-docker-0.8.1 branch July 17, 2023 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker openmldb compile image or demo image documentation Improvements or additions to documentation workflow CICD related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants